
#ifndef _READWRITE_JPG_H_
#define _READWRITE_JPG_H_

#include <BImage>
#include <BReadWrite>

using namespace BWE;

class ReadWrite_jpg : public BReadWrite
{
public:
	ReadWrite_jpg();
	~ReadWrite_jpg();

	virtual void setOptions(const BString& options) override;
	virtual const BString& options() const override;

	virtual BObject* load(const BString& fileName) override;
	virtual bool load(const BString& fileName, BObject* object) override;
	virtual bool save(const BString& fileName, const BObject* object) const override;

	virtual BObject* read(const BBuffer& buffer) override;
	virtual bool read(const BBuffer& buffer, BObject* object) override;
	virtual bool write(BBuffer& buffer, const BObject* object) const override;

	virtual const BString& author() const;
	virtual const BString& version() const;
	virtual const BString& description() const;
	virtual const BString& message() const;

private:
	BString			_author;
	BString			_version;
	BString			_description;
	BString			_message;
	BString			_options;
	BString			_log;
};

#endif